(case-flip-character): Make case test more general.
authorRichard M. Stallman <rms@gnu.org>
Wed, 13 Apr 1994 00:16:31 +0000 (00:16 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 13 Apr 1994 00:16:31 +0000 (00:16 +0000)
lisp/emulation/edt.el

index b6bc4071f8b7e6867debc0597bf36e2f408328a6..5ee298998cf5882ea38bd0be5b53a7974e8cb183 100644 (file)
@@ -332,7 +332,8 @@ Accepts a prefix argument for the number of paragraphs."
 Accepts a prefix argument of the number of characters to invert."
   (interactive "p")
   (while (> num 0)
-    (funcall (if (<= ?a (following-char))
+    (funcall (if (let ((ch (following-char)))
+                  (= ch (downcase ch)))
                 'upcase-region 'downcase-region)
             (point) (1+ (point)))
     (forward-char 1)